roundedbox: Add gtk_rounded_boxes_init_for_style()
authorBenjamin Otte <otte@redhat.com>
Mon, 19 Dec 2016 18:19:15 +0000 (19:19 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 20 Dec 2016 17:01:12 +0000 (18:01 +0100)
commit4d9eedafcd13423d4ccb3530fad29bda75701879
tree12a19f366d0268ba98c91861ec37191b619679aa
parent95a2a5c54c6480b62be482145ee40c58a15b4bd8
roundedbox: Add gtk_rounded_boxes_init_for_style()

Instead of making people intiialize a rectangle and then applying border
radius manually, provide a constructor that does it for them.
While doing that, also allow people to instead request the padding box
or the content box.

Refactor all relevant code to use this new constructor.
13 files changed:
docs/reference/gtk/Makefile.am
gtk/Makefile.am
gtk/gtkcolorscale.c
gtk/gtkcolorswatch.c
gtk/gtkcssimagebuiltin.c
gtk/gtkcssshadowvalue.c
gtk/gtkpopover.c
gtk/gtkrender.c
gtk/gtkrenderbackground.c
gtk/gtkrenderborder.c
gtk/gtkrenderprivate.h [deleted file]
gtk/gtkroundedbox.c
gtk/gtkroundedboxprivate.h